package com.example.factory.api.facade;

import com.example.factory.api.dto.DtoRole;
import com.example.factory.api.dto.Response;
import com.example.factory.api.dto.form.DtoRoleForm;

import java.util.List;

/**
 * @author Lei Tao
 */
public interface RoleFacade {
    Response<List<DtoRole>> roleList();

    Response<Void> deleteRole(String roleGuid);

    Response<DtoRole> retrieveRole(String roleGuid);

    Response<DtoRole> saveOrUpdateRole(DtoRoleForm dtoRoleForm);
}
